package 剑指Offer1;

public class _40求1加到N {
    public int sumNums(int n) {
        if(n == 1) return n;
        return n + sumNums(n-1);
    }
}
